home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
FM Towns: Free Software Collection 7
/
FM Towns Free Software Collection 7.iso
/
t_os
/
io5
/
io5text.c
< prev
next >
Wrap
C/C++ Source or Header
|
1993-11-30
|
3KB
|
129 lines
#include <stdio.h>
#include <stdlib.h>
#include <winb.h>
#include <te.h>
#include <fntb.h>
#include <gui.h>
extern int resultdialog ;
extern int textid ;
extern int resulttitle ;
extern int Message_00d8 ;
extern int DButton_00da ;
extern int procfunc() ;
extern int button ;
#define ALIGN 4
#define OFFSET(type) (sizeof(MMIPACKET) + (sizeof(type)+ALIGN-1)/ALIGN*ALIGN)
/* MMI_init 用データ */
/* ヘッダ */
MMIINIT initDataIO5TEXT = { "MmiInit", 6, 0 } ;
/* resultdialog */
static MMIPACKET d001 = { &resultdialog,
NULL,
&MJ_DIALOGL40,
OFFSET(DIALOGL40),
MS_NONE
} ;
static DIALOGL40 d001d = { MS_BTLEFTL40 | MS_EVMOSONL40,
214, 149, 476, 308, 0, 7, 0,
MS_PANELL40 | MS_FRAMEL40,
NULL, 0, 0
} ;
/* textid */
static MMIPACKET d002 = { &textid,
&resultdialog,
&MJ_TEXTL40,
OFFSET(TEXTL40),
MS_NONE
} ;
static TEXTL40 d002d = { MS_BTLEFTL40 | MS_EVMOSONL40 | MS_EVKEYONL40 | MS_HORIL40,
322, 215, 375, 238, 0, 7,14,
MS_DFRAMEL40 | MS_FRAMEL40,
0,
0, 0, 0, 0,
0, 0, 0, 0, 0,
3, 0, 0,
0, 0, 0, 0,
0,
0, 0, 0, 0,
1, 12, 12, 1, 0,
0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0,
24
} ;
/* resulttitle */
static MMIPACKET d003 = { &resulttitle,
&resultdialog,
&MJ_MSGL40,
OFFSET(MSGL40),
MS_NONE
} ;
static MSGL40 d003d = { MS_CENTERL40 | MS_DSPONLYL40,
270, 169, 429, 192, 0, 7,14,
MS_NONEL40,
"あなたの考えた数字は",
1, 12, 12,
MS_NONEL40,
0, 0
} ;
/* Message_00d8 */
static MMIPACKET d004 = { &Message_00d8,
&resultdialog,
&MJ_MSGL40,
OFFSET(MSGL40),
MS_NONE
} ;
static MSGL40 d004d = { MS_LEFTL40 | MS_DSPONLYL40,
380, 214, 440, 237, 0, 7,14,
MS_NONEL40,
"ですね。",
1, 12, 12,
MS_NONEL40,
0, 0
} ;
/* DButton_00da */
static MMIPACKET d005 = { &DButton_00da,
&resultdialog,
&MJ_DBUTTONL40,
OFFSET(DBUTTONL40),
MS_NONE
} ;
static DBUTTONL40 d005d = { MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40,
315, 262, 384, 287,12, 7, 0,
MS_PANELL40 | MS_FRAMEL40,
procfunc,
0x0000
} ;
/* button */
static MMIPACKET d006 = { &button,
&resultdialog,
&MJ_MSGL40,
OFFSET(MSGL40),
MS_NONE
} ;
static MSGL40 d006d = { MS_CENTERL40 | MS_DSPONLYL40,
326, 263, 372, 286, 0, 7,14,
MS_NONEL40,
"確認",
1, 12, 12,
MS_NONEL40,
0, 0
} ;